<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateBusinessCirclesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('business_circle', function(Blueprint $table)
		{
			$table->increments('id');
			$table->timestamps();

			//关联tyw_users中的id
			$table->integer('uid');
			//text 发布到生意圈的内容 长度限制140个字
			$table->text('content');
			//varchar 255 原始尺寸图片地址
			$table->string('origin_image');
			//varchar 255 中等尺寸图片地址
			$table->string('middle_image');
			//varchar 255 小尺寸图片地址
			$table->string('thumb_image');
			//int 11微博分享数量
			$table->integer('weibo_share_num');
			//int 11 微信分享数量
			$table->integer('weixin_share_num');
			//int 11 评论数量
			$table->integer('comment_num');
			//int 11 点赞数量
			$table->integer('zan_num');

			$table->softDeletes();

		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('business_circles');
	}

}
